package com.geekcattle.service.goods.iml;

import com.geekcattle.mapper.goods.GoodsOrderMapper;
import com.geekcattle.service.goods.GoodsOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @program: geek-framework
 * @description:
 * @author: LQ
 * @create: 2019-04-21 14:35
 */
@Service
public class GoodsOrderServiceImpl implements GoodsOrderService {
    @Autowired
    private GoodsOrderMapper goodsOrderMapper;

    @Override
    public int addOrder(Map map) {
        return goodsOrderMapper.addOrder(map);
    }

    @Override
    public int updateOrder(Map map) {
        return goodsOrderMapper.updateOrder(map);
    }

    @Override
    public List<Map> selectOrder(Map map) {
        return goodsOrderMapper.selectOrder(map);
    }
    @Override
    public List<Map> selectOrderDetail(Map map) {
        return goodsOrderMapper.selectOrderDetail(map);
    }

    @Override
    public String isUser(String uid) {
        return  goodsOrderMapper.isUser(uid);
    }

    @Override
    public int getOrderCount(Map map) {
        return goodsOrderMapper.getOrderCount(map);
    }
}
